<#-- 以下宏均为SSF应用系统专有 -->
<#include "common_function.ftl">
<#-- 应用发布时更改为<#assign base="Application["BASE"]"> -->
<#assign base="/pi">
<#-- Header -->
<#macro header>
<div id="header">
	<div id="logo"></div>
	<#--<div id="title">派尔公司后台管理系统</div>-->
	<div id="currentuser"> &nbsp;当前用户：<#assign loginUser = Session["LOGINUSER"]><span style="color:#ff6">${loginUser.userName} - ${loginUser.realName}</span>【<a style="color:#fff" href="${base}/logout.do">退出</a>】</div>
	<div class="spacer"></div>
	<div id="header_tabs">
	<ul><#nested>
		
	</ul>
	</div>
	<div id="header_bar">
		<span class="right">
			<img id="expd" src="${base}/images/g/module-expand.png" alt="Expand All Modules"/>
			<img id="clps" src="${base}/images/g/module-collapse.png" alt="Collapse All"/>
		</span>
		<span class="hint right">展开/最小化所有窗口</span>
	</div>
</div>
</#macro>

<#--Intro -->
<#macro intro navi="" tasks={}>
<#assign content=["${navi}"]/>
<div id="navi"> 
<script language="javascript"> 
var navTD = top.document.getElementById("navTD");
var naviInfo="${navi}".split(",");
var displayInfo="<div id='navDiv'>";
for(var i=0;i<naviInfo.length;i++){
	displayInfo+="<span\><img src=\"${base}/images/arror.gif\" width=\"7\" height=\"11\" border=\"0\" alt=\"\"\></span\>&nbsp;"+ naviInfo[i] +"<span\>&nbsp;";
}
if (navTD) {
	navTD.innerHTML =displayInfo+"</div>";
}
</script> 
</div>
<#if (tasks?size > 0)>
	<div style="margin-top:5px">
		<#assign keys = tasks?keys>
		<#list keys as key>
			<a href="${parseLink(tasks[key])}" class="navlink">${key}</a>
		</#list>
	</div>
</#if>
</#macro>

<#-- Body -->
<#macro body >
<div id="main">
	<div id="c1" class="main_containers"></div>
	<div id="c2" class="main_containers"></div>
</div>
</#macro>

<#-- Footer -->
<#macro footer>
<div id="footer">
<div id="footer_bar"><a href="#">About Pioneer</a> | <a href="http://www.netvibes.com">About Netvibes</a> | <a href="http://jquery.com/demo/thickbox/">About Thickbox</a></div>
SSF(Struts+Spring+FreeMarker) Ver 0.5 Copyright &#169; Powered By Nanlei
</div>
<!-- A hidden module template is carried within the page, which can be modified easily -->
<div id="module_template" class="module" style="display:none">
	<div class="moduleFrame">
		<div class='moduleHeader'>
			<span class="moduleIcon"><img alt="icon" src="${base}/images/g/icon.gif"/></span>
			<div class='moduleTitle'></div>
			<div class='moduleActions'>
				<img src='${base}/images/g/s.gif' alt="Refresh" class="action_refresh"/>
				<img src='${base}/images/g/s.gif' alt="Collapse" class="action_min"/>
				<img src='${base}/images/g/s.gif' alt="Expand" class="action_max"/>
				<img src='${base}/images/g/s.gif' alt="Close" class="action_close"/>
			</div>
		</div>
		<div class='moduleContent'>
			<img src="${base}/images/g/loading.gif" alt="Loading..."/> Loading...
		</div>
	</div>
</div>
</#macro>